import "./assets/main.css";

import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
//全局引入
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import VChart from 'vue-echarts';
import * as echarts from 'echarts';
// ************************************ **********************************
//  引入组件样式
import 'element-plus/dist/index.css'
// 引入你需要的组件
// *************************************************************************************
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.config.globalProperties.$echarts = echarts;
app.use(createPinia());
app.use(router);
// app.use(VueAwesomeSwiper);
// *********************************** 注册你需要的组件 ***********************************

app.use(VChart, { echarts });
app.use(ElementPlus, {
    locale: zhCn,
})
// **************************************************************************************

app.mount("#app");
